﻿@model blacksoft.Models.Almacen

@{
    ViewBag.Title = "Edit";
    Layout = "~/Views/Shared/_LayoutCompras.cshtml";
}

@{
    if (TempData["MODCOMP_edit_failure_stock"] != null)
    {
        <div class="error grid_12">
        <h3>@TempData["MODCOMP_edit_failure_stock"].</h3>
        <a class="hide_btn" href="#"></a>
    </div>
    }
}

<div class="block big">
    <div class="titlebar">
        <h3>Modificar Producto en terminal</h3>
    </div>
    <div class="block_cont">
        @using (Html.BeginForm())
        {
            @Html.AntiForgeryToken()

            <div class="form">
               
                @Html.ValidationSummary(true)
                @Html.HiddenFor(model => model.IdAlmacen)

                <div class="form-row">
                    @Html.LabelFor(model => model.IDTerminal, "IDTerminal", new { @class = "control-label col-md-2" })
                    @Html.DropDownList("IDTerminal", null, "Elegir", new { @readonly = "readonly", @disabled = "disabled" })
                    @Html.HiddenFor(model => model.IDTerminal)
                    @Html.ValidationMessageFor(model => model.IDTerminal)

                </div>

                <div class="form-group">
                    @Html.LabelFor(model => model.IDProducto, "IDProducto", new { @class = "control-label col-md-2" })
                    @Html.DropDownList("IDProducto", null, "Elegir", new { @readonly="readonly",@disabled="disabled"})
                    @Html.HiddenFor(model => model.IDProducto)
                    @Html.ValidationMessageFor(model => model.IDProducto)
                   
                </div>

                <div class="form-row">
                    @Html.LabelFor(model => model.StockActual, new { @class = "control-label col-md-2" })
                    @Html.TextBoxFor(model => model.StockActual, new {@class = "text-box single-line", @readonly = "readonly", @disabled = "disabled"})
                    @Html.HiddenFor(model => model.StockActual)
                    @Html.ValidationMessageFor(model => model.StockActual)

                </div>

                <div class="form-row">
                    @Html.LabelFor(model => model.StockMin, new { @class = "control-label col-md-2" })

                    @Html.EditorFor(model => model.StockMin)
                    @Html.HiddenFor(model => model.StockMin)
                    @Html.ValidationMessageFor(model => model.StockMin)

                </div>

                <div class="form-row">
                    @Html.LabelFor(model => model.StockMax, new { @class = "control-label col-md-2" })

                    @Html.EditorFor(model => model.StockMax)
                    @Html.HiddenFor(model => model.StockMax)
                    @Html.ValidationMessageFor(model => model.StockMax)

                </div>
                <br />
               

                <div class="form-group">
                   <input type="submit" value="Guardar" class="btn btn-default" />
                    <br />
                    @Html.ActionLink("Regresar al listado","Index")
                    </div>
                </div>
        }
            </div>
    </div>
        